package com.freesky.biz.icbc.mapper;

import com.freesky.biz.icbc.domain.TScanUser;
import com.freesky.biz.icbc.excel.TScanChannelExport;
import com.freesky.biz.icbc.excel.TScanUserExport;
import com.freesky.common.core.domain.entity.TScanChannel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScanChannelMapper {

    public List<TScanChannel> selectScanChannelList(TScanChannel scanChannel);

    public TScanChannel selectScanChannelById(Long id);

    public List<TScanChannel> selectChildrenScanChannelById(Long channelId);


    public int hasChildByScanChannelId(Long channelId);


    public int checkScanChannelExistUser(Long channelId);

    public TScanChannel checkScanChannelNameUnique(@Param("channelName") String channelName,
                                              @Param("pid") String pid);

    public int insertScanChannel(TScanChannel scanChannel);

    public int updateScanChannel(TScanChannel scanChannel);


    public int updateScanChannelChildren(@Param("channels") List<TScanChannel> channels);

    public int deleteScanChannelById(Long id);

    public List<TScanChannel> exportScanChannelList(TScanChannel scanChannel);

    TScanChannel selectScanChannelByOutletNo(@Param("outletNo") String outletNo);
}
